package com.heima.apis.admin;

import com.heima.model.admin.dtos.AdUserDto;
import com.heima.model.admin.pojos.AdUser;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;

@Api(value = "admin登录注册", tags = "admin登录注册")
public interface LoginControllerApi {

    @ApiOperation("登录")
    ResponseResult login(AdUserDto adUserDto);

    /**
     * 注册
     * @param adUser
     * @return
     */
    @ApiOperation("注册")
    ResponseResult register(@RequestBody AdUser adUser);
}
